package com.dongjiantong.biz.model;

import com.dongjiantong.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2018/1/9.
 */
@Table(name="djt_farm_transfer_records")
@Data
public class FarmStableRecord extends BaseEntity{




    /**
     * 单据编号
     */
    private String number;

    /**
     * 养殖场id
     */
    @Column(name = "farm_id")
    private Long farmId;

    /**
     * 养殖场名称
     */
    @Column(name = "farm_name")
    private String farmName;

    /**
     * 从栏舍的id
     */
    @Column(name = "from_stable_id")
    private Long fromStableId;

    /**
     * 从栏舍号
     */
    @Column(name = "from_stable_number")
    private String fromStableName;

    /**
     * 到栏舍号id
     */
    @Column(name = "to_stable_id")
    private Long toStableId;

    /**
     * 到栏舍号
     */
    @Column(name = "to_stable_number")
    private String toStableName;

    /**
     * 转群时间
     */
    private Date date;

    /**
     * 转移动物数量
     */
    private Integer quantity;

    /**
     * 牛号
     */
    @Column(name = "cow_number")
    private String cowNumber;

    /**
     * 记录状态：1、有效 -1、失效
     */
    @Column(name = "delete_flag")
    private Integer deleteFlag;
    @Column(name = "created_at")
    private Date createdAt;

    @Column(name = "updated_at")
    private Date updatedAt;
}
